package com.cyf.db.mapper;

import com.cyf.db.bean.ApiUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by hfy on 2017/12/12.
 */
@Mapper
public interface ApiUserMapper {

    @Select("select webPageAuthDomainName from api_user where id = #{id}")
    String getWebPageAuthDomainNameById(@Param("id") Integer id);


    @Select("select * from api_user where id = #{id}")
    ApiUser getById(@Param("id") Integer id);

    @Select("select * from api_user where token = #{token}")
    ApiUser getByToken(@Param("token") String token);
}
